public class Organism {
    private String name;
    private String species;
    private int age;

    //空参 + 实参
    public Organism(){}
    public Organism(String name,String species,int age)
    {
        this.name = name;
        this.species = species;
        this.age = age;
    }

    // set 和 get 方法
    public void setname(String name){
        this.name = name;
    }
    public String getname(){
        return name;
    }

    public void setspecies(String species){
        this.species = species;
    }
    public String getspecies(){
        return species;
    }
    
    public void setage(int age){
        this.age = age;
    }
    public int getage(){
        return age;
    }

    public void action()
    {
        System.out.println("...");
    }
    public void show()//显示成员变量
    {
        System.out.println("名字：" + getname());
        System.out.println("物种：" + getspecies());
        System.out.println("年龄：" + getage());
    }
}